<template>
	<view>
		<uni-list>
			<!--<uni-list-item title="提现到" rightText="右侧文字"></uni-list-item>-->
			<uni-list-item title="提现金额（元）" :rightText="withdrawalDetails.num"></uni-list-item>
			<uni-list-item title="实际到账金额（元）" :rightText="withdrawalDetails.real_num"></uni-list-item>
			<uni-list-item title="服务费（元）" :rightText="withdrawalDetails.charge"></uni-list-item>
			<uni-list-item title="提现时间" :rightText="withdrawalDetails.createtime"></uni-list-item>
    </uni-list>
	</view>
</template>

<script>
  const app = getApp()

  export default {
		data() {
			return {
			  id: '',
        withdrawalDetails: {}
			}
		},
		methods: {
      handleGetDetail() {
        app.request({
          wid: this.id,
        }, '/api/logistics/express/withdraw_detail').then((res) => {
          const {
            code,
            data,
            msg
          } = res

          if (code === 1) {
            this.withdrawalDetails = data
          } else {
            Toast(msg)
          }
        }).finally(() => {
          this.loading = false
        })
      }
		},
    onLoad(res) {
		  const {
		    id
		  } = res

      this.id = id
      this.handleGetDetail()
    }
	}
</script>

<style>

</style>
